li=[i for i in range(1,101)]
print(li)
# 结合三目运算符
list = ["成立" if i%2==1 else "不成立" for i in range(1,100) ]
print(list)
# eval函数，实现列表、字典、元组与字符串之间的转化
li1=["{'a':11,'b':2}","[11,22,33,44]"]
li2=["([1,2],[3,4])"]
li3=[eval(i) for i in li1]
print(li3)
li4=[eval(i) for i in li2]
print(li4)